import Vue from 'vue';
import VueRouter from 'vue-router';
import Playlist from '../pages/Playlist/index.vue'
import detail from '../pages/Playlist/detail.vue'
import Top250 from '../pages/Top250/index.vue'
import Top250Detail from '../pages/Top250/movieDetail.vue'
import music from '../pages/music/index.vue'
import musicDetail from '../pages/music/musicDetail.vue'
Vue.use(VueRouter);
const routes = [
    {
        path: "/playlist",
        component:Playlist
    },
    {
        path: "/detail",
        component: detail
    },
    {
        path: "/top250",
        component: Top250
    },
    {
        path: "/movieDetail/:id",
        component: Top250Detail
    },
    {
        path: "/music",
        component: music
    },
    {
        path: "/musicDetail",
        component: musicDetail
    }
]
const router = new VueRouter({
    routes,
    mode:"history"
})
export default router;
